<!DOCTYPE html>
<html>
<style>
html, body { width: 100%; height: 100%; }
</style>
<body>
<script>
document.body.addEventListener('click', () => {
  let result = 'failed';

  try {
    const ac = new AudioContext();
    result = ac.state;
  } catch (e) {
    result = 'creation_failed';
  }

  top.postMessage(result, '*');
}, { once: true });
</script>
